home *** CD-ROM | disk | FTP | other *** search
- /* main.cpp
- *
- * This is the actual core which makes this thing fly.
- */
-
- #include <string.h>
- #include <XApplication.h>
- #include <XWindow.h>
-
-
- /************************************************************************/
- /* */
- /* Main entry point */
- /* */
- /************************************************************************/
-
- /* StartApplication
- *
- * This starts up the application
- */
-
- XGAppCore *StartApplication(void)
- {
- XGAppSingleWindow *aw;
- XGWindow *w;
- XGSWindowInitRecord wi;
-
- /*
- * Start application engine
- */
-
- aw = new XGAppSingleWindow;
-
- /*
- * Start window
- */
-
- wi.fViewType = 'wind';
- wi.windowType = KWinTypeDocument;
- wi.windowID = 0;
- wi.fVisible = true;
- wi.screenLeft = 0;
- wi.screenTop = 0;
- wi.screenRight = 205;
- wi.screenBottom = 331;
-
- wi.minx = -1;
- wi.miny = -1;
- wi.maxx = -1;
- wi.maxy = -1;
- wi.initx = -1;
- wi.inity = -1;
- wi.zoomx = -1;
- wi.zoomy = -1;
-
- strcpy(wi.windowName,"Test window");
- w = new XGWindow(wi);
-
- /*
- * Done. Return
- */
-
- return aw;
- }
-